#include <stdio.h>

int main(void)
{
	//int a = 1;
	//char b = (*(char*)&a);
	//printf("b = %d\n",b);
/*
    int i = 1;
    char c = (*(char*)&i);

    if (c)
        printf("小端\n");
    else
        printf("大端\n");
*/
 	union
    {
        int i;
        char c;
    }un;
    un.i = 1;

    if (un.c == 1)
        printf("小端\n");
    else
        printf("大端\n");

	return 0;
}

